package com.shenfa.util;

import java.util.ArrayList;
import java.util.List;

public class StringUtil {
	public static List<String> SplieASCII(String input){
		  char[]chars=input.toCharArray(); //把字符中转换为字符数组 
		  int ascii=0;
		  StringBuffer temp = new StringBuffer();
		  List<String> templist=new ArrayList<String>();
		  for(int i=0;i<chars.length;i++){//输出结果
			  ascii=(int)chars[i];
			  if(1==ascii){
				  templist.add(temp.toString());
				  temp=new StringBuffer();
			  }else{
				  temp.append(String.valueOf(chars[i]));
			  }
		  }
		  templist.add(temp.toString());
		  return templist;
	}
}
